#!/bin/bash

#. "/home/st/.bashrc"

filename="${PATH_MAIN_REPO_FN_DIR}/dir_mm_dogit_/_mm_dogit_/_fn/mm_dogit_set_3.sh"

echo -e "${HLIGHT}---start file://$filename ---${NORMAL}" # start file

idir=$(pwd)

# cd "$(prs_f -d $filename)" || qq_exit "$(prs_f -d $filename) not found"

# garg_ $(prs_f -n $filename) $@ 1>/dev/null

mm_dogit_set_3() {
    echo -e "${CYAN}--- ${FUNCNAME[0]}() $* ---${NORMAL}" #started functions

    garg_ ${FUNCNAME[0]} $@ 1>/dev/null

    d_name=$(dirname "/home/st"/${PATH_MAIN_REPO_FN_DIR}/dir_mm_dogit_/_mm_dogit_/_fn/mm_dogit_set_3.sh)

    if [ "-h" == "$1" ]; then
        echo -e "${CYAN} ${FUNCNAME[0]}() help: 
            MAIN: 
            NAME: ${FUNCNAME[0]}()
            ARGS: 
            FLOW:
    
            ${NORMAL}"
        return 0
    fi

    if [ "_man" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".man
        return 0
    fi

    if [ "_go" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".sh
        return 0
    fi

    if [ "_lst" == "$1" ]; then
        edit_ "$d_name/${FUNCNAME[0]}".lst
        return 0
    fi

    if [ "_test" == "$1" ]; then
        ${FUNCNAME[0]}test
        return 0
    fi

    # amount_arg $# 1 1

    tst_ -echo
    plt_pause "continue? mm_dogit_ 5 + 6"

    echo -e "${GREEN}--- dpl_after_pull_plt file ---${NORMAL}" #sistem info mesage

    dpl_after_pull_plt="${PLT_PATH}/.d/.exec.d/mm_dogit_/2_dpl_after_pull_plt.sh"

    if [ -f "${dpl_after_pull_plt}" ]; then
        echo -e "${BLUE}--- . ${dpl_after_pull_plt} ---${NORMAL}" #sistem info mesage
        . "${dpl_after_pull_plt}"
    else
        plt_info "NOTFILE : ${dpl_after_pull_plt} :: return 1"
        return 1
    fi
    mm_dogit_ 5
    mm_dogit_ 6

}

cd "$idir"

unset filename
